package imse.team0.invoice;

import javax.xml.bind.annotation.*;

/**
 * @author Eugen, 5/3/12 6:29 PM
 */
@XmlRootElement(name = "invoiceItem")
@XmlAccessorType(XmlAccessType.FIELD)
public class InvoiceItem {
    @XmlAttribute(name = "id")
    private String itemID;
    @XmlAttribute(name="orderedQty")
    private int itemQuantity;
    @XmlAttribute(name="unitPrice")
    private double unitCost;
    @XmlElement(name="totalPrice")
    private double totalCost;

    public String getItemID() {
        return itemID;
    }

    public void setItemID(String itemID) {
        this.itemID = itemID;
    }

    public int getItemQuantity() {
        return itemQuantity;
    }

    public void setItemQuantity(int itemQuantity) {
        this.itemQuantity = itemQuantity;
    }

    public double getUnitCost() {
        return unitCost;
    }

    public void setUnitCost(double unitCost) {
        this.unitCost = unitCost;
    }

    public double getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(double totalCost) {
        this.totalCost = totalCost;
    }
}
